<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>OS系统接口查询手册: Timer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OS系统接口查询手册
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Janisa</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classTimer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Timer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="timer_8h_source.html">timer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ad3fef129f36f1c82a957cf9d307fa4a5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5">TimerType</a> { <a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5a1bf232fa66b4d8ba00e59a5879ca952b">ONCE</a>, 
<a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5a616457855c2a85795c24535bdb282763">CIRCLE</a>
 }<tr class="separator:ad3fef129f36f1c82a957cf9d307fa4a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:adfbc1b8bdb3a4f300cd2f31b9d779824"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#adfbc1b8bdb3a4f300cd2f31b9d779824">Timer</a> (void *(*<a class="el" href="classTimer.html#ad258792dd4f3bd00e598b54803376a08">run</a>)(void *args), void *<a class="el" href="classTimer.html#a1215fd981cdafda622942f8f34009278">arg</a>, ull <a class="el" href="classTimer.html#a75c9020d25d48f18972a9a7d11d26f58">itvl</a>, <a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5">Timer::TimerType</a> <a class="el" href="classTimer.html#ab4758ff55836db6221cec416bd5a3f78">ttype</a>)</td></tr>
<tr class="separator:adfbc1b8bdb3a4f300cd2f31b9d779824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e607b129b392c11adddd9641a320436"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#a4e607b129b392c11adddd9641a320436">Start</a> ()</td></tr>
<tr class="separator:a4e607b129b392c11adddd9641a320436"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6379e797f968aaee6ac3bb12dc6b81c5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#a6379e797f968aaee6ac3bb12dc6b81c5">Stop</a> ()</td></tr>
<tr class="separator:a6379e797f968aaee6ac3bb12dc6b81c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa971ac2e7a2513dfd5850b036905fc51"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#aa971ac2e7a2513dfd5850b036905fc51">OnTimer</a> ()</td></tr>
<tr class="separator:aa971ac2e7a2513dfd5850b036905fc51"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ab4758ff55836db6221cec416bd5a3f78"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5">TimerType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#ab4758ff55836db6221cec416bd5a3f78">ttype</a></td></tr>
<tr class="separator:ab4758ff55836db6221cec416bd5a3f78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1215fd981cdafda622942f8f34009278"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#a1215fd981cdafda622942f8f34009278">arg</a></td></tr>
<tr class="separator:a1215fd981cdafda622942f8f34009278"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75c9020d25d48f18972a9a7d11d26f58"><td class="memItemLeft" align="right" valign="top">ull&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#a75c9020d25d48f18972a9a7d11d26f58">itvl</a></td></tr>
<tr class="separator:a75c9020d25d48f18972a9a7d11d26f58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a645dbda5779f53d309d32ac1ffcd5692"><td class="memItemLeft" align="right" valign="top">ull&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#a645dbda5779f53d309d32ac1ffcd5692">expires</a></td></tr>
<tr class="separator:a645dbda5779f53d309d32ac1ffcd5692"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad258792dd4f3bd00e598b54803376a08"><td class="memItemLeft" align="right" valign="top">void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#ad258792dd4f3bd00e598b54803376a08">run</a> )(void *args)</td></tr>
<tr class="separator:ad258792dd4f3bd00e598b54803376a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab845881a20f8d1f5551e64a31a7526b3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimer.html#ab845881a20f8d1f5551e64a31a7526b3">stop</a></td></tr>
<tr class="separator:ab845881a20f8d1f5551e64a31a7526b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员枚举类型说明</h2>
<a class="anchor" id="ad3fef129f36f1c82a957cf9d307fa4a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5">Timer::TimerType</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a class="anchor" id="ad3fef129f36f1c82a957cf9d307fa4a5a1bf232fa66b4d8ba00e59a5879ca952b"></a>ONCE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ad3fef129f36f1c82a957cf9d307fa4a5a616457855c2a85795c24535bdb282763"></a>CIRCLE&#160;</td><td class="fielddoc">
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="adfbc1b8bdb3a4f300cd2f31b9d779824"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Timer::Timer </td>
          <td>(</td>
          <td class="paramtype">void *(*)(void *args)&#160;</td>
          <td class="paramname"><em>run</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ull&#160;</td>
          <td class="paramname"><em>itvl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5">Timer::TimerType</a>&#160;</td>
          <td class="paramname"><em>ttype</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="aa971ac2e7a2513dfd5850b036905fc51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Timer::OnTimer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4e607b129b392c11adddd9641a320436"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Timer::Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6379e797f968aaee6ac3bb12dc6b81c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Timer::Stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="a1215fd981cdafda622942f8f34009278"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* Timer::arg</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a645dbda5779f53d309d32ac1ffcd5692"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ull Timer::expires</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a75c9020d25d48f18972a9a7d11d26f58"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ull Timer::itvl</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad258792dd4f3bd00e598b54803376a08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void*(* Timer::run) (void *args)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab845881a20f8d1f5551e64a31a7526b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Timer::stop</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab4758ff55836db6221cec416bd5a3f78"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTimer.html#ad3fef129f36f1c82a957cf9d307fa4a5">TimerType</a> Timer::ttype</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
